package com.example.demo.service;

import com.example.demo.dao.TBizAuctionRemindDAO;
import com.example.demo.po.TBizAuctionRemind;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TBizAuctionRemindService {

    @Autowired
    TBizAuctionRemindDAO tBizAuctionRemindDAO;

    public boolean save(TBizAuctionRemind ar){
        int i = tBizAuctionRemindDAO.save(ar);
        if(i>0)
            return true;
        else
            return false;
    }

    public boolean delAll(List<Integer> list){
        int i = tBizAuctionRemindDAO.del(list);
        if(i>0)
            return true;
        else
            return false;
    }


    public  List<TBizAuctionRemind> getAlllist(){
        TBizAuctionRemind ar = new TBizAuctionRemind();
        List<TBizAuctionRemind> list =tBizAuctionRemindDAO.findList(ar);
        return  list;
    }


}
